package home.dao;


import home.model.Goods;

import java.util.List;

public interface GoodsDao {
	public List<Goods> getAllGoods(int pageNo, int pageSize);
	public boolean deleteGoodsById(int id);
	public Goods findById(int id);
	public List findByOneProperty(String className,String property,Object value);
	public boolean saveGoods(Goods goods);
    public List<Goods> queryForPage(final String hql,final int offset,final int length);
    public int getAllRowCount(String hql);
}
